package models

import (
	"encoding/json"
	"time"
)

// PromptRequest represents a persisted LLM request/response cycle.
type PromptRequest struct {
	ID                 string          `db:"id"`
	ProjectID          *string         `db:"project_id"`
	PageID             *string         `db:"page_id"`
	PromptText         string          `db:"prompt_text"`
	ResponseJSON       json.RawMessage `db:"response_json"`
	Status             string          `db:"status"`
	ModelName          string          `db:"model_name"`
	GeneratedVersionID *string         `db:"generated_version_id"`
	CreatedBy          *string         `db:"created_by"`
	CreatedAt          time.Time       `db:"created_at"`
}
